<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>promise的使用</title>
</head>
<body>
    
</body>
<script>
    let p1 = new Promise((resolve, reject) => {
        // resolve('顺利')
        reject('失败')
    })

    console.log('promise实例:', p1)
    Promise.then()
</script>
</html>